home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / AZTECW.DIR / 01705_Script_Sickness < prev    next >
Text File  |  1995-09-12  |  9KB  |  333 lines

  1. global gQuest, gBeenClicked
  2.  
  3. on ASickRollovers1
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(12) or rollover(13) or rollover(14) then
  7.       ArrowCursor
  8.       repeat while rollover(12) or rollover(13) or rollover(14)
  9.         set the locH of sprite 15 to 362
  10.         set the locV of sprite 15 to 256
  11.         set the locH of sprite 16 to 93
  12.         set the locV of sprite 16 to 288
  13.         set the locH of sprite 17 to 535
  14.         set the locV of sprite 17 to 336
  15.         updatestage
  16.       end repeat
  17.       set the locH of sprite 15 to 962
  18.       set the locH of sprite 16 to 993
  19.       set the locH of sprite 17 to 935
  20.       updatestage
  21.     else
  22.       if rollover(11) then
  23.         repeat while rollover(11)
  24.           AztecCursor
  25.           puppetsprite 47, true
  26.           set the locH of sprite 47 to 475
  27.           set the locV of sprite 47 to 216
  28.           updatestage
  29.           if the mousedown then
  30.             removeBathHouse
  31.             set GBeenClicked = 1
  32.           else
  33.             if gBeenClicked = 1 then
  34.               repeat while gBeenClicked = 1 
  35.                 set the locH of sprite 47 to 975
  36.                 updatestage
  37.                 AnimateLoop 3, 662, 3, "SA340300.AIF", 3
  38.                 replacebathhouse
  39.               end repeat
  40.             end if
  41.           end if
  42.         end repeat
  43.         set the locH of sprite 47 to 975
  44.         updatestage
  45.         puppetsprite 47, false
  46.         replacebathhouse
  47.       else
  48.         if rollover(9) or rollover(10) then
  49.           repeat while rollover(9) or rollover(10)
  50.             AztecCursor
  51.             if the mousedown then
  52.               set GBeenClicked = 1
  53.             else
  54.               if gBeenClicked = 1 then
  55.                 repeat while gBeenClicked = 1
  56.                   AnimateMudBath
  57.                 end repeat
  58.               end if
  59.             end if
  60.           end repeat
  61.         else
  62.           if rollover(40) then
  63.             HandCursor
  64.           else
  65.             if rollover(41) then
  66.               HandCursor
  67.             else
  68.               if rollover(42) then
  69.                 HandCursor
  70.               else
  71.                 ArrowCursor
  72.               end if
  73.             end if
  74.           end if
  75.         end if
  76.       end if
  77.     end if
  78.   end if
  79.   RandomQuestion(gQuest)
  80. end
  81.  
  82. on ASickRollovers2
  83.   set gBeenClicked = 0
  84.   if (not(CheckClickedStatus(gQuest))) then
  85.     if rollover(6) or rollover(7) then
  86.       repeat while rollover(6) or rollover(7)
  87.         AztecCursor
  88.         puppetsprite 9, true
  89.         set the locH of sprite 9 to 161
  90.         set the locV of sprite 9 to 217
  91.         updatestage
  92.         if the mousedown then
  93.           set GBeenClicked = 1
  94.         else
  95.           if gBeenClicked = 1 then
  96.             repeat while gBeenClicked = 1
  97.               MedicineDoctor
  98.             end repeat
  99.           end if
  100.         end if
  101.       end repeat
  102.       set the locH of sprite 9 to 961
  103.       puppetsprite 9, false
  104.       updatestage
  105.     else
  106.       if rollover(10) then
  107.         ArrowCursor
  108.         repeat while rollover(10)
  109.           set the locH of sprite 11 to 232
  110.           set the locV of sprite 11 to 336
  111.           updatestage
  112.         end repeat
  113.         set the locH of sprite 11 to 932
  114.         updatestage
  115.       else
  116.         if rollover(12) then
  117.           ArrowCursor
  118.           repeat while rollover(12)
  119.             set the locH of sprite 13 to 473
  120.             set the locV of sprite 13 to 312
  121.             updatestage
  122.           end repeat
  123.           set the locH of sprite 13 to 973
  124.           updatestage
  125.         else
  126.           if rollover(39) then
  127.             HandCursor
  128.           else
  129.             if rollover(41) then
  130.               HandCursor
  131.             else
  132.               if rollover(42) then
  133.                 HandCursor
  134.               else
  135.                 ArrowCursor
  136.               end if
  137.             end if
  138.           end if
  139.         end if
  140.       end if
  141.     end if
  142.   end if
  143.   RandomQuestion(gQuest)
  144. end
  145.  
  146. on MedicineDoctor
  147.   ArrowCursor
  148.   set gAnimationcast1 = 685
  149.   set gAnimationcast2 = 689
  150.   set count = 0
  151.   puppetsound "SA340202.AIF"
  152.   repeat while count < 2 and (the mouseUp)
  153.     set the castnum of sprite 6 = gAnimationcast1 + 1
  154.     updatestage
  155.     wait .5
  156.     if (the mousedown) then 
  157.       exit repeat
  158.     end if
  159.     set the castnum of sprite 6 = gAnimationcast1 + 2
  160.     updatestage
  161.     if (the mousedown) then 
  162.       exit repeat
  163.     end if
  164.     wait .5
  165.     set the castnum of sprite 6 = gAnimationcast1 + 3
  166.     updatestage
  167.     if (the mousedown) then 
  168.       exit repeat
  169.     end if
  170.     wait .5
  171.     
  172.     set the castnum of sprite 6 = gAnimationcast1 + 2
  173.     set the castnum of sprite 7 = gAnimationcast2 + 1
  174.     updatestage
  175.     if (the mousedown) then 
  176.       exit repeat
  177.     end if
  178.     wait .2
  179.     
  180.     set the castnum of sprite 6 = gAnimationcast1 + 1
  181.     set the castnum of sprite 7 = gAnimationcast2 + 2
  182.     updatestage
  183.     if (the mousedown) then 
  184.       exit repeat
  185.     end if
  186.     wait .5
  187.     set the castnum of sprite 6 = gAnimationcast1 + 2
  188.     set the castnum of sprite 7 = gAnimationcast2 + 1
  189.     updatestage
  190.     if (the mousedown) then 
  191.       exit repeat
  192.     end if
  193.     wait .2
  194.     set the castnum of sprite 6 = gAnimationcast1 + 3
  195.     set the castnum of sprite 7 = gAnimationcast2
  196.     updatestage
  197.     if (the mousedown) then 
  198.       exit repeat
  199.     end if
  200.     wait .2
  201.     set the castnum of sprite 6 = gAnimationcast1 + 2
  202.     updatestage
  203.     if (the mousedown) then 
  204.       exit repeat
  205.     end if
  206.     wait .5
  207.     set the castnum of sprite 6 = gAnimationcast1
  208.     updatestage
  209.     if (the mousedown) then 
  210.       exit repeat
  211.     end if
  212.     wait .5
  213.     set count = count + 1
  214.   end repeat
  215.   set the castnum of sprite 6 = gAnimationcast1
  216.   set the castnum of sprite 7 = gAnimationcast2
  217.   updatestage
  218.   sound fadeout 1, 2*60
  219.   set gBeenClicked = 0
  220. end
  221.  
  222. on AnimateMudBath
  223.   ArrowCursor
  224.   set gAnimationcast1 = 666
  225.   set gAnimationcast2 = 675
  226.   set count = 0
  227.   puppetsound "SA340302.AIF"
  228.   repeat while count < 2 and (the mouseUp)
  229.     set the castnum of sprite 9 = gAnimationcast1 + 1
  230.     set the castnum of sprite 10 = gAnimationcast2 + 1
  231.     updatestage
  232.     wait .2
  233.     if (the mousedown) then 
  234.       exit repeat
  235.     end if
  236.     set the castnum of sprite 9 = gAnimationcast1 + 2
  237.     set the castnum of sprite 10 = gAnimationcast2 + 2
  238.     updatestage
  239.     if (the mousedown) then 
  240.       exit repeat
  241.     end if
  242.     wait .2
  243.     set the castnum of sprite 9 = gAnimationcast1 + 3
  244.     updatestage
  245.     if (the mousedown) then 
  246.       exit repeat
  247.     end if
  248.     wait .2
  249.     
  250.     set the castnum of sprite 9 = gAnimationcast1 + 4
  251.     set the castnum of sprite 10 = gAnimationcast2 + 3
  252.     updatestage
  253.     if (the mousedown) then 
  254.       exit repeat
  255.     end if
  256.     wait .2
  257.     
  258.     set the castnum of sprite 9 = gAnimationcast1 + 5
  259.     set the castnum of sprite 10 = gAnimationcast2 + 2
  260.     updatestage
  261.     if (the mousedown) then 
  262.       exit repeat
  263.     end if
  264.     wait .2
  265.     set the castnum of sprite 9 = gAnimationcast1 + 6
  266.     updatestage
  267.     if (the mousedown) then 
  268.       exit repeat
  269.     end if
  270.     wait .2
  271.     set the castnum of sprite 9 = gAnimationcast1 + 6
  272.     set the castnum of sprite 10 = gAnimationcast2 + 1
  273.     updatestage
  274.     if (the mousedown) then 
  275.       exit repeat
  276.     end if
  277.     wait .2
  278.     set the castnum of sprite 9 = gAnimationcast1 + 7
  279.     set the castnum of sprite 10 = gAnimationcast2
  280.     updatestage
  281.     if (the mousedown) then 
  282.       exit repeat
  283.     end if
  284.     wait .2
  285.     set the castnum of sprite 9 = gAnimationcast1 + 8
  286.     updatestage
  287.     if (the mousedown) then 
  288.       exit repeat
  289.     end if
  290.     wait .2
  291.     set the castnum of sprite 9 = gAnimationcast1
  292.     updatestage
  293.     if (the mousedown) then 
  294.       exit repeat
  295.     end if
  296.     wait .2
  297.     set count = count + 1
  298.   end repeat
  299.   set the castnum of sprite 9 = gAnimationcast1
  300.   set the castnum of sprite 10 = gAnimationcast2
  301.   updatestage
  302.   sound fadeout 1, 2*60
  303.   set gBeenClicked = 0
  304. end
  305.  
  306.  
  307. on ResetFlowers
  308.   set the locH of sprite 15 to 862
  309.   set the locH of sprite 16 to 873
  310.   set the locH of sprite 17 to 835
  311.   puppetsprite 15, false
  312.   puppetsprite 16, false
  313.   puppetsprite 17, false
  314.   updatestage
  315. end
  316.  
  317.  
  318. on removeBathHouse
  319.   puppetsound "SA340301.AIF"
  320.   updatestage
  321.   wait .5
  322.   puppetsprite 4, true
  323.   set the locH of sprite 4 to 800
  324.   updatestage
  325. end
  326.  
  327. on replaceBathHouse
  328.   set the locH of sprite 4 to 328
  329.   set the locV of sprite 4 to 226
  330.   puppetsprite 4, false
  331.   updatestage
  332. end
  333.